package com.atguigu.jxc.controller;

import com.atguigu.jxc.service.UnitService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

@Controller
@RequestMapping("/unit")
public class unitController {

    @Autowired
    private UnitService unitService;

    @PostMapping("list")
    public Map<String,Object> getlist(){
        return unitService.getlist();
    }








}
